<html>
<head>
<title>Informations sur l'équipe</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php echo base_url();?>css/stylesheet.css" />
<script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/control.js"></script>
<script src="<?php echo base_url(); ?>js/jquery.form.js"></script>
<script type="text/javascript">
$(document).ready( function () {
	$("#fermer").click(function(){
		window.close();
	});
});
</script>
<script>
function modifierDentiste(identification){
	var url = "<?php echo base_url();?>index.php/admin/modifierDentisteClinic?id="+identification;
	window.location.href = url;
}
function supprimerDentiste(identification){
	var id_clinique = $("#id_clinique").val();
	var url = "<?php echo base_url();?>index.php/admin/supprimerDentisteClinic?identification="+identification;
	if(window.confirm("Voulez-vous vraiment supprimer ce profil?")){	
		$.post(url, {identification : identification},				
			function(data){
				var urlredirect = "<?php echo base_url(); ?>index.php/admin/infoEquipe?id="+id_clinique;
				document.location = urlredirect;
			}
		);
	}
}
</script>
<style>
.fixedimage{
	height: 80px;
	width:50px;
}
</style>
</head>
<body>
<input type="hidden" name="id_clinique" id="id_clinique" value="<?php echo $id_clinique; ?>" />
<div class="wrap" style="width:736px;">
<div class="right2" style="width:100%">	
	<?php
		$i = 0;
		if ($result!=0){
 		foreach ($result as $key => $list){	
			$i++;
		?>
		<div class="box marged">
			<table cellspacing="0" cellpadding="0" border="0" width="655">
				<tr> 
					<td>
						<img src="<?php echo base_url(); ?>upload/photodentiste/<?php echo $list['photo_dentiste'];?>" width="125" />
					</td>
					<td valign="top"> <p class="titleOrange"><br>
						<?php echo $list['nom_dentiste'];?><br>
						<p><strong>Sp&eacute;cialiste </strong><?php echo $list['fonction_dentiste'];?></p>
						<p align="justify">
							<strong><?php echo $list['annee_exp1'];?></strong> <?php echo $list['exp1'];?><br>
							<strong><?php echo $list['annee_exp2'];?></strong> <?php echo $list['exp2'];?><br>
							<strong><?php echo $list['annee_exp3'];?></strong> <?php echo $list['exp3'];?><br>
							<strong><?php echo $list['annee_exp4'];?></strong> <?php echo $list['exp4'];?><br>
							<strong><?php echo $list['annee_exp5'];?></strong> <?php echo $list['exp5'];?><br>
							<strong><?php echo $list['annee_exp6'];?></strong> <?php echo $list['exp6'];?><br>
						</p>
						<p align="justify">
							<strong>Langues parl&eacute;es : </strong> 
								<?php
								$langue = "";
								if($list['langue1'] != "" && $list['langue2'] != "" && $list['langue3'] != ""){
									$langue = $list['langue1'].", ".$list['langue2'].", ".$list['langue3'];
								}else if($list['langue1'] != "" && $list['langue2'] != "" && $list['langue3'] == ""){
									$langue = $list['langue1'].", ".$list['langue2'];
								}else if($list['langue1'] != "" && $list['langue2'] == "" && $list['langue3'] == ""){
									$langue = $list['langue1'];
								}else if($list['langue1'] != "" && $list['langue2'] == "" && $list['langue3'] == ""){
									$langue = "";
								}
								echo $langue;
								?>
						</p>
					</td>
					<td><input type="button" value="Modifier ce profil" onclick="modifierDentiste('<?php echo $list['id_dentiste']; ?>')" /></td>
					<td><input type="button" value="Supprimer ce profil" onclick="supprimerDentiste('<?php echo $list['id_dentiste']; ?>')" /></td>
				</tr>
			</table>
		</div>
		<?php
		}
	}
	?>	
	</div>
</div>
<div style="float:center">
		<input type="button" name="button" id="fermer" value="Fermer" />
</div>	
</body>
</html>